import json


def load_json(path):
    with open(path, 'r', encoding='utf-8') as file:
        data = json.load(file)

        self_token_list = [item.get('self_data').get('token') for item in data.get('data')]

        match_token_list = [item.get('match_data').get('token') for item in data.get('data')]

        return self_token_list, match_token_list


if __name__ == '__main__':
    token = load_json(path)
# print(token, type(token))
